﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo02
{
    class Animals
    {
        private string name;
        private string action;

        public string Name { get; set; }
        public string Action { get; set; }

        public Animals(string name, string action)
        {
            this.name = name;
            this.action = action;
        }
        public Animals()
        {

        }
        public void Info ()
        {
            Console.WriteLine("这是一只{0},它会{1}",this.name,this.action);
            }
    }
}
